import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.1

Rectangle {
    width: 1024; height: 860; color: "#ffffff"

    BorderImage {
        id: videoImage;
        anchors.fill: parent;
        horizontalTileMode: BorderImage.Stretch
        verticalTileMode: BorderImage.Stretch
        anchors.verticalCenter: parent.verticalCenter;
        antialiasing: true;
        source: "qrc:/rtspcodec/qml/images/nopeople.png";
    }

    Connections {
        target: ExhibitionModel;
        onUpdateVideo:if(true)
                           {
                               videoImage.source = ""
                               videoImage.source = "image://CodeImg"
                               videoImage.update();
                           }
    }
}
